/* SPDX-License-Identifier: GPL-2.0 */
/*
 * IP outpout Vendor Hooks
 *
 * Copyright (c) 2023, Huawei Tech. Co., Ltd.
 */

#ifdef CONFIG_VENDOR_INET_HOOKS

#undef TRACE_SYSTEM
#define TRACE_SYSTEM inet

#define TRACE_INCLUDE_PATH trace/hooks
#if !defined(_TRACE_HOOK_INET_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_HOOK_INET_H
#include <linux/tracepoint.h>
#include <trace/hooks/vendor_hooks.h>

struct sk_buff;
DECLARE_HOOK(vendor_ip_finish_output,
	TP_PROTO(const struct sk_buff *skb, int *df),
	TP_ARGS(skb, df));

#endif
/* This part must be outside protection */
#include <trace/define_trace.h>

#else /* !CONFIG_VENDOR_INET_HOOKS */

#include <linux/tracepoint.h>

struct sk_buff;
DECLARE_EVENT_NOP(vendor_ip_finish_output,
	TP_PROTO(const struct sk_buff *skb, int *df),
	TP_ARGS(skb, df));

#endif
